/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package forensicsGUI;

import javax.swing.JTextArea;

/**
 *
 * @author marc
 */
public class InstanceLogger implements ILogDevice {

    private JTextArea tarea = new JTextArea();

    public void InstanceLogger() {
        tarea.setText("");
        tarea.setEditable(false);
        tarea.setEnabled(false);
        tarea.setVisible(true);

    }

    public void log(char log) {

        tarea.append(log + "");
        tarea.updateUI();
    }

    /**
     * Returns the text area associated with this instance.
     * @return
     */
    public JTextArea getArea() {
        return tarea;
    }
}
